<?php
namespace app\api\model;
use think\Model;

class Category extends Model
{
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    protected $pk = 'id';
    
    // 分类
    public function finished() {
        return $this->hasMany('Finished','type_id');
    }
}

